'use strict';

const { Controller } = require('egg');

class TestController extends Controller {
  async index() {
    // this.ctx.body = await this.ctx.service.special.insert({
    //   name: '前端与移动开发',
    // });
    // this.ctx.body = await this.ctx.service.special.selectById({ id: 'special-1579229674564' });
    this.ctx.body = await this.ctx.service.special.selectByPage({ page: 1, size: 10 });
    // this.ctx.body = await this.ctx.service.special.updateById({
    //   id: 'special-1579244322421',
    //   name: '前端开发',
    // });
    // this.ctx.body = await this.ctx.service.special.deleteById({ id: 'special-1579229674564' });
    // this.ctx.body = 'nothing.';
  }
}

module.exports = TestController;
